package com.example.neusoft215gdh.android_21.Model;
import com.example.neusoft215gdh.android_21.Service.RegisterService;
import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by hp-pc on 2017/9/21.
 */

public class RegisterModel {

    private Retrofit retrofit;

    public RegisterModel(){
        retrofit=new Retrofit.Builder()
                .baseUrl("http://172.24.10.175/workout/api.php/")
                .addConverterFactory(GsonConverterFactory.create())//转换的为javabean的工具)
                .build();
    }

    public Call Register(String tel,String pass){
        RegisterService registerService=retrofit.create(RegisterService.class);
        System.out.println("模型中的值为:"+registerService);
          return  registerService.RegsterImpl(tel,pass);
    }


}
